
class Student {
    private String name;
    private int age;
    Student(String str) {
        System.out.println("Stuent(String str)");
    }

    Student() {
        System.out.println("Stuent()");
    }


    Student(char name) {
        System.out.println("Student(char name)");
    }

    Student(String name,int age) {
        this.name = name;
        this.age = age;
        System.out.println("Student(String name,int age)");
    }

}

public class TestDemo2 {
    public static void main(String[] args) {
        Student student = new Student();
        Class stuClass = student.getClass();
        System.out.println(stuClass.getName());


        // 一个类中只有一个class
        Class stuClass2 = Student.class;
        System.out.println(stuClass == stuClass2);
    }
}
